﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;
using WSManager.Model;

namespace WSManager.ModelValidation
{
    public class ArticleValidator: AbstractValidator<Article>
    {
        public ArticleValidator()
        {
            RuleFor(a => a.Name).NotEmpty();
            RuleFor(a => a.Metadata).NotNull();
            RuleFor(a => a.Categories).NotNull();
        }
    }
}
